<?php 
require('includes/application_top.php');
$submenu = $_POST['sub'];
if(isset($submenu))
{
    $html_sub = '';
    switch ($submenu) {
        case 'sub1':
            $html_sub = '<li style="width: 180px"><a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=136') . '">
                            <span>' . zen_get_category_name(72, $_SESSION['languages_id']) . '</span></a>
                            <ul style="width: 90px" >';

$array_of_categories = array(72, 137, 138);
 foreach ($array_of_categories as $c)
   {
                    $html_sub .= '<li style="width: 90px"><a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath='.$c) . '">' . zen_get_category_name($c, $_SESSION['languages_id']) . '</a></li>';
   } 
                $html_sub .='</ul>
                    </li>
                    <li style="width: 180px"><a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=91') . '">' . zen_get_category_name(91, $_SESSION['languages_id']) . '</a>
                    <li style="width: 180px"><a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=73') . '"><span>' . zen_get_category_name(73, $_SESSION['languages_id']) . '</span></a>
                        <ul style="width: 180px">';
$array_of_categories = array(76, 78, 98);
 foreach ($array_of_categories as $c)
   {
                    $html_sub .= '<li style="width: 180px"><a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath='.$c) . '">' . zen_get_category_name($c, $_SESSION['languages_id']) . '</a></li>';
   } 
                    $html_sub .= '</ul>
                        </li>';

$array_of_categories = array(74, 86, 87, 88, 89);
 foreach ($array_of_categories as $c)
   {
            $html_sub .= '<li style="width: 180px"><a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath='.$c) . '">' . zen_get_category_name($c, $_SESSION['languages_id']) . '</a></li>';
   } 
            $html_sub .= '<li style="width: 180px"><a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=65') . '"><span>' . zen_get_category_name(65, $_SESSION['languages_id']) . '</span></a>';

                $html_sub .= '<ul style="width: 100px">';
$array_of_categories = array(97, 69, 151, 145, 134, 133);
 foreach ($array_of_categories as $c)
   {
                    $html_sub .= '<li style="width: 100px"><a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath='.$c) . '">' . zen_get_category_name($c, $_SESSION['languages_id']) . '</a></li>';
   } 

                    $html_sub .= '</ul>
                </li>';

    $array_of_categories = array(101, 100);
 foreach ($array_of_categories as $c)
   {
            $html_sub .= '<li style="width: 180px"><a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath='.$c) . '">' . zen_get_category_name($c, $_SESSION['languages_id']) . '</a></li>';
   }
   //end sub menu 1   
            break;

        case 'sub2'://sub menu 2
            $array_of_categories = array(150, 132, 79, 131, 128, 80, 82);
            foreach ($array_of_categories as $c)
            {
                $html_sub .= '<li style="width: 180px"><a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath='.$c) . '">' . zen_get_category_name($c, $_SESSION['languages_id']) . '</a></li>';
            } 
            //end sub menu 2   
            break;
            
        case 'sub3'://sub menu 3
            $array_of_categories = array(87, 103, 126, 94, 147, 148, 132, 92, 125, 106, 105, 99, 100);
            foreach ($array_of_categories as $c)
            {
                $html_sub .= '<li style="width: 203px"><a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath='.$c) . '">' . zen_get_category_name($c, $_SESSION['languages_id']) . '</a></li>';
            } 
            //end sub menu 3   
            break;
        
        case 'sub4'://sub menu 4
            $array_of_categories = array(121, 122);
            foreach ($array_of_categories as $c)
            {
                $html_sub .= '<li style="width: 124px"><a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath='.$c) . '">' . zen_get_category_name($c, $_SESSION['languages_id']) . '</a></li>';
            } 
            // end sub menu 4
            break;
    }
    
    
    echo($html_sub);
}